package io.unicorn.modules.water.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.unicorn.common.utils.PageUtils;
import io.unicorn.common.utils.Query;

import io.unicorn.modules.water.dao.TDataErrDao;
import io.unicorn.modules.water.entity.TDataErrEntity;
import io.unicorn.modules.water.service.TDataErrService;


@Service("tDataErrService")
public class TDataErrServiceImpl extends ServiceImpl<TDataErrDao, TDataErrEntity> implements TDataErrService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TDataErrEntity> page = this.page(
                new Query<TDataErrEntity>().getPage(params),
                new QueryWrapper<TDataErrEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<Map<String, Object>> queryErrInfo(Map<String, Object> params) {
        return baseMapper.queryErrInfo(params);
        //return new PageUtils(page);
    }

}
